package treaddemo;

public class Test {
	public static void main(String[] args) {
		ThreadDemo et=new ThreadDemo();
	et.start();
	
	System.out.println(Thread.currentThread().getName());
	for(int i=10000;i>0;i--) {
		System.out.print(i+",");
	}
	Thread thread=new Thread(new RunnableDemo());
	thread.start();
	
	new Thread(()->{
		Thread.currentThread().setName("test-thread");
		System.out.println(Thread.currentThread().getName());
		for(int i=0;i<10000;i++) {
			System.out.print(i+",");
		}
	}).start();
}
}

